package org.metasketch.simulator.petri;

import java.util.ArrayList;
import java.util.List;

public class Place extends PetriNetNode {

	List<Transition> inputTransitions = new ArrayList<Transition>();
	List<Transition> outputTransitions = new ArrayList<Transition>();

	// @Override
	// public void compile() throws Exception {
	//
	// for (Link in : inputs) {
	// PetriNetNode node = in.getSource();
	// if (node instanceof Transition) {
	// inputTransitions.add((Transition) node);
	// } else
	// throw new Exception(
	// "Input link to a Place has a node that is not a Transition !!! "
	// + node.getClass());
	// }
	//
	// for (Link in : outputs) {
	// PetriNetNode node = in.getSource();
	// if (node instanceof Transition) {
	// outputTransitions.add((Transition) node);
	// } else
	// throw new Exception(
	// "Output link from a Place has a node that is not a Transition !!! "
	// + node.getClass());
	// }
	//
	// }

	public List<Transition> getInputTransitions() {
		return inputTransitions;
	}

	public void setInputTransitions(List<Transition> inputTransitions) {
		this.inputTransitions = inputTransitions;
	}

	public List<Transition> getOutputTransitions() {
		return outputTransitions;
	}

	public void setOutputTransitions(List<Transition> outputTransitions) {
		this.outputTransitions = outputTransitions;
	}

}
